/*                                                                      
 Copyright 2018 hzheng@gzhu.edu.cn              
                                                                         
 Licensed under the Apache License, Version 2.0 (the "License");         
 you may not use this file except in compliance with the License.        
 You may obtain a copy of the License at                                 
                                                                         
     http://www.apache.org/licenses/LICENSE-2.0                          
                                                                         
  Unless required by applicable law or agreed to in writing, software    
 distributed under the License is distributed on an "AS IS" BASIS,       
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and     
 limitations under the License.                                          
 */                                                                      
/*+***********************************************************
Filename: zh_decoder_v01.v
Description: a wrapper wraps e203_exu_decode.v
Modification:
  2018.07.27 createion by Zheng Hui

************************************************************-*/
`include "e203_defines.v"

module zh_decoder_v01(
  input  [`E203_INSTR_SIZE-1:0] i_instr,

  output dec_rs1x0,
  output dec_rs2x0,
  output dec_rs1en,
  output dec_rs2en,
  output dec_rdwen,
  output [`E203_RFIDX_WIDTH-1:0] dec_rs1idx,
  output [`E203_RFIDX_WIDTH-1:0] dec_rs2idx,
  output [`E203_RFIDX_WIDTH-1:0] dec_rdidx,
  output [`E203_DECINFO_WIDTH-1:0] dec_info,  
  output [`E203_XLEN-1:0] dec_imm,

  output dec_rv32,
  output dec_bjp,
  output dec_jal,
  output dec_jalr,
  output dec_bxx,
  output [`E203_XLEN-1:0] dec_bjp_imm 
);


    //decoder module
    e203_exu_decode m_e203_exu_decode(
        .i_instr      (i_instr    ),
          
        .dec_rv32  (dec_rv32),
        .dec_bjp   (dec_bjp),
        .dec_jal   (dec_jal),
        .dec_jalr   (dec_jalr),
        .dec_bxx   (dec_bxx),
        .dec_bjp_imm(dec_bjp_imm),
        .dec_info  (dec_info ),
        .dec_rs1x0 (dec_rs1x0),
        .dec_rs2x0 (dec_rs2x0),
        .dec_rs1en (dec_rs1en),
        .dec_rs2en (dec_rs2en),
        .dec_rdwen (dec_rdwen),
        .dec_rs1idx(dec_rs1idx),
        .dec_rs2idx(dec_rs2idx),
        .dec_rdidx (dec_rdidx),
        .dec_imm(dec_imm)
    );




endmodule
